#include "widget.h"
#include "ui_widget.h"
#include <mybutton.h>
#include <QDebug>
Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
    MyButton *button =  new MyButton(this);
    qDebug()<<children();
    button->setText(tr("button"));
}

Widget::~Widget()
{
    delete ui;
    qDebug()<<"delete widget";
}
